package com.effectivcrm.domain;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.Table;
import lombok.Getter;
import lombok.Setter;

import org.hibernate.envers.Audited;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * The persistent class for the leads database table.
 * 
 */
@Entity
@Table(name = "t_lead")
@Audited
public class Lead extends PersistentObject<User, String> {
	private static final long serialVersionUID = 1L;
	
	@Getter @Setter
	@NotEmpty
	@Column(name = "first_name", length = 100)
	private String firstName;
	
	@Getter @Setter
	@Column(name = "last_name", length = 100)
	private String lastName;
	
		
	@Getter @Setter
	@Column(name = "opportunity_amount")
	private double opportunityAmount;
	
	
	@Getter @Setter
	@Column(name = "converted")
	private boolean converted;
	
	@Getter @Setter
	@Column(name = "description", length = 250)
	private String description;
	
	@Getter @Setter
	@Column(name = "email", length = 100)
	private String email;
	
	@Getter @Setter
	@Column(name = "mobile", length = 30)
	private String mobile;

	@Getter @Setter
	@Column(name = "work_phone", length = 30)
	private String workPhone;
	
	@Getter @Setter
	@Column(name="fax")
	private String fax;
	
	
	@Getter @Setter
	@Embedded
	private Address address;
	
	
}
